<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>图片精灵</title>
    <style>
    div{
        margin:100px auto;
        background-color:gray;
        width:20px;height:17px;
        background-image:url(header.png);
        background-position: 299px 50px;
    }
    </style>
</head>
<body>
    <div>
        
    </div>
</body>
</html>